﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000361 RID: 865
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class CurAssistChangedNotify : IMessage<CurAssistChangedNotify>, IMessage, IEquatable<CurAssistChangedNotify>, IDeepCloneable<CurAssistChangedNotify>, IBufferMessage
	{
		// Token: 0x17000B33 RID: 2867
		// (get) Token: 0x060026CF RID: 9935 RVA: 0x0006CCD1 File Offset: 0x0006AED1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<CurAssistChangedNotify> Parser
		{
			get
			{
				return CurAssistChangedNotify._parser;
			}
		}

		// Token: 0x17000B34 RID: 2868
		// (get) Token: 0x060026D0 RID: 9936 RVA: 0x0006CCD8 File Offset: 0x0006AED8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return CurAssistChangedNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000B35 RID: 2869
		// (get) Token: 0x060026D1 RID: 9937 RVA: 0x0006CCEA File Offset: 0x0006AEEA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return CurAssistChangedNotify.Descriptor;
			}
		}

		// Token: 0x060026D2 RID: 9938 RVA: 0x0006CCF1 File Offset: 0x0006AEF1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CurAssistChangedNotify()
		{
		}

		// Token: 0x060026D3 RID: 9939 RVA: 0x0006CCF9 File Offset: 0x0006AEF9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CurAssistChangedNotify(CurAssistChangedNotify other) : this()
		{
			this.assist_ = ((other.assist_ != null) ? other.assist_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060026D4 RID: 9940 RVA: 0x0006CD2E File Offset: 0x0006AF2E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CurAssistChangedNotify Clone()
		{
			return new CurAssistChangedNotify(this);
		}

		// Token: 0x17000B36 RID: 2870
		// (get) Token: 0x060026D5 RID: 9941 RVA: 0x0006CD36 File Offset: 0x0006AF36
		// (set) Token: 0x060026D6 RID: 9942 RVA: 0x0006CD3E File Offset: 0x0006AF3E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayerAssistInfo Assist
		{
			get
			{
				return this.assist_;
			}
			set
			{
				this.assist_ = value;
			}
		}

		// Token: 0x060026D7 RID: 9943 RVA: 0x0006CD47 File Offset: 0x0006AF47
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as CurAssistChangedNotify);
		}

		// Token: 0x060026D8 RID: 9944 RVA: 0x0006CD55 File Offset: 0x0006AF55
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(CurAssistChangedNotify other)
		{
			return other != null && (other == this || (object.Equals(this.Assist, other.Assist) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060026D9 RID: 9945 RVA: 0x0006CD88 File Offset: 0x0006AF88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.assist_ != null)
			{
				num ^= this.Assist.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060026DA RID: 9946 RVA: 0x0006CDC4 File Offset: 0x0006AFC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060026DB RID: 9947 RVA: 0x0006CDCC File Offset: 0x0006AFCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060026DC RID: 9948 RVA: 0x0006CDD5 File Offset: 0x0006AFD5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.assist_ != null)
			{
				output.WriteRawTag(18);
				output.WriteMessage(this.Assist);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060026DD RID: 9949 RVA: 0x0006CE08 File Offset: 0x0006B008
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.assist_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Assist);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060026DE RID: 9950 RVA: 0x0006CE48 File Offset: 0x0006B048
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CurAssistChangedNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.assist_ != null)
			{
				if (this.assist_ == null)
				{
					this.Assist = new PlayerAssistInfo();
				}
				this.Assist.MergeFrom(other.Assist);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060026DF RID: 9951 RVA: 0x0006CE9C File Offset: 0x0006B09C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060026E0 RID: 9952 RVA: 0x0006CEA8 File Offset: 0x0006B0A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 18U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					if (this.assist_ == null)
					{
						this.Assist = new PlayerAssistInfo();
					}
					input.ReadMessage(this.Assist);
				}
			}
		}

		// Token: 0x04000F92 RID: 3986
		private static readonly MessageParser<CurAssistChangedNotify> _parser = new MessageParser<CurAssistChangedNotify>(() => new CurAssistChangedNotify());

		// Token: 0x04000F93 RID: 3987
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000F94 RID: 3988
		public const int AssistFieldNumber = 2;

		// Token: 0x04000F95 RID: 3989
		private PlayerAssistInfo assist_;
	}
}
